home *** CD-ROM | disk | FTP | other *** search
- /*
- * hippowraps.psw - histogramming package postscript wraps.
- * by william shipley, at SLAC, august 1990
- *
- * Copyright (C) 1991 The Board of Trustees of The Leland Stanford
- * Junior University. All Rights Reserved.
- *
- * $Header: /nfs/ebnextk/LocalSources/hippo/RCS/hippowrapsps.psw,v 2.13 1992/03/12 02:07:06 rensing Rel $
- *
- * Modified by M. Gravina 3/27/91
- */
-
-
- /*
- * drawTextPS - draw Text with specified rotation and positioning.
- */
- defineps drawTextPS(char *message;
- float x, y, fontSize, rotation, xAlignStep, yAlignStep;
- char *fontName)
- gsave
- (fontName) fontSize selectfont
- x y translate
- rotation rotate
- (message) dup stringwidth pop
- xAlignStep neg mul fontSize yAlignStep neg mul
- moveto
- show
- grestore
- endps
-